package com.gnerv.sylvanas.business.manage.model.bo;

import com.gnerv.sylvanas.business.manage.model.entity.View;
import lombok.Data;
import org.springframework.beans.BeanUtils;

/**
 * @author Gnerv LiGen
 */
@Data
public class ViewBO {

    private String ukId;
    private String parentUkId;
    private String name;
    private String type;
    private String status;
    private Integer sort;

    public View toView() {
        View view = new View();
        BeanUtils.copyProperties(this, view);
        view.setGmtCreate();
        view.setGmtModified();
        return view;
    }

}